﻿using System;
using UnityEngine;

// Token: 0x02000129 RID: 297
[AddComponentMenu("RVP/C#/Drivetrain/Drive Force", 3)]
public class DriveForce : MonoBehaviour
{
	// Token: 0x06000575 RID: 1397 RVA: 0x0002A392 File Offset: 0x00028592
	public void SetDrive(DriveForce from)
	{
		this.rpm = from.rpm;
		this.torque = from.torque;
		this.curve = from.curve;
	}

	// Token: 0x06000576 RID: 1398 RVA: 0x0002A3B8 File Offset: 0x000285B8
	public void SetDrive(DriveForce from, float torqueFactor)
	{
		this.rpm = from.rpm;
		this.torque = from.torque * torqueFactor;
		this.curve = from.curve;
	}

	// Token: 0x040007A8 RID: 1960
	[NonSerialized]
	public float rpm;

	// Token: 0x040007A9 RID: 1961
	[NonSerialized]
	public float torque;

	// Token: 0x040007AA RID: 1962
	[NonSerialized]
	public AnimationCurve curve;

	// Token: 0x040007AB RID: 1963
	[NonSerialized]
	public float feedbackRPM;

	// Token: 0x040007AC RID: 1964
	[NonSerialized]
	public bool active = true;
}
